import Vue from 'vue'
import Router from 'vue-router'
import Login from '../views/pc-login'
Vue.use(Router)

export default new Router({
  mode: "history",
  routes: [
    {
      path: '/',
      redirect:"/login"
    },
    {
      path: '/login',
      name: 'login',
      component: Login,
    }, {
      path: '/',
      name: "home",
      component: () => import('../views/pc-Home'),
      children: [{
        path: '/student',
        name: "student",
        component: () => import('../views/pc-Home/pc-Student')
      }, {
        path: '/user',
        name: "user",
        component: () => import('../views/pc-Home/pc-user')
      }, {
        path: '/books',
        name: "books",
        component: () => import('../views/pc-Home/pc-books')
      }, {
        path: '/hot',
        name: "hot",
        component: () => import('../views/pc-Home/pc-Hot')
      }, {
        path: '/permis',
        name: "permis",
        component: () => import('../views/pc-Home/pc-Permis')
      }, {
        path: '/worker',
        name: "worker",
        component: () => import('../views/pc-Home/pc-worker')
      }, {
        path: '/daylog',
        name: "daylog",
        component: () => import('../views/pc-Home/pc-daylog')
      }]
    },{
      path:"/relstatus",
      name:"relstatus",
      component:import('../components/relstatus')
    }
  ]
})

